﻿@model BusinessReviewApp.Models.Business

@{
    ViewBag.Title = "Edit";
}

<h2>Edit</h2>

@using (Html.BeginForm()) {
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Business</legend>

        @Html.HiddenFor(model => model.BusinessID)

        <div class="editor-label">
            @Html.LabelFor(model => model.Name)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Name)
            @Html.ValidationMessageFor(model => model.Name)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Number)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Number)
            @Html.ValidationMessageFor(model => model.Number)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Street)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Street)
            @Html.ValidationMessageFor(model => model.Street)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Town)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Town)
            @Html.ValidationMessageFor(model => model.Town)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.County)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.County)
            @Html.ValidationMessageFor(model => model.County)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Postcode)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Postcode)
            @Html.ValidationMessageFor(model => model.Postcode)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Category)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Category)
            @Html.ValidationMessageFor(model => model.Category)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Description)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Description)
            @Html.ValidationMessageFor(model => model.Description)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.URLPhoto1)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.URLPhoto1)
            @Html.ValidationMessageFor(model => model.URLPhoto1)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.URLPhoto2)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.URLPhoto2)
            @Html.ValidationMessageFor(model => model.URLPhoto2)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.URLPhoto3)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.URLPhoto3)
            @Html.ValidationMessageFor(model => model.URLPhoto3)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.URLPhoto4)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.URLPhoto4)
            @Html.ValidationMessageFor(model => model.URLPhoto4)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.URLPhoto5)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.URLPhoto5)
            @Html.ValidationMessageFor(model => model.URLPhoto5)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.DecimalLatitude)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.DecimalLatitude)
            @Html.ValidationMessageFor(model => model.DecimalLatitude)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.DecimalLongtitude)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.DecimalLongtitude)
            @Html.ValidationMessageFor(model => model.DecimalLongtitude)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.PhoneNumber)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.PhoneNumber)
            @Html.ValidationMessageFor(model => model.PhoneNumber)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Email)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Email)
            @Html.ValidationMessageFor(model => model.Email)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.WebsiteURL)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.WebsiteURL)
            @Html.ValidationMessageFor(model => model.WebsiteURL)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.PriceRating)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.PriceRating)
            @Html.ValidationMessageFor(model => model.PriceRating)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.SuitableForFamilies)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.SuitableForFamilies)
            @Html.ValidationMessageFor(model => model.SuitableForFamilies)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.FastFood)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.FastFood)
            @Html.ValidationMessageFor(model => model.FastFood)
        </div>

        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
